<!DOCTYPE HTML>
<html xmlns:fb="http://ogp.me/ns/fb#" xmlns:og="http://ogp.me/ns#" xml:lang="th" lang="th">
<head>
	<meta charset="utf-8">
    <title><?php echo $seo_title;?></title>
    <meta name="title" content="<?php echo htmlspecialchars($seo_title, ENT_COMPAT, 'UTF-8');?>" />
    <meta name="keywords"  content="<?php echo htmlspecialchars($seo_keyword, ENT_COMPAT, 'UTF-8');?>" />
    <meta name="description" content="<?php echo addslashes($seo_description);?>" />
    <meta property="fb:app_id" content="<?php echo $fb_api;?>" />
    <meta property="og:title" content="<?php echo htmlspecialchars((!empty($fb_title) ? $fb_title:$seo_title), ENT_COMPAT, 'UTF-8');?>" />
    <meta property="og:description" content="<?php echo htmlspecialchars((!empty($fb_description) ? $fb_description:$seo_description), ENT_COMPAT, 'UTF-8');?>" />
    <meta property="og:type" content="<?php echo $fb_type;?>" />
	<meta property="og:image" content="<?php echo (!empty($fb_image) ? $fb_image:image_asset_url('default/logo.png'));?>" />
	<link rel="image_src" href="<?php echo (!empty($fb_image) ? $fb_image:image_asset_url('default/logo.png'));?>" />
	<meta name="googlebot" content="index,follow"/>
	<meta name="robots" content="index, follow, all"/>
	<meta name="author" content="You2Play.com"/>
	<meta http-equiv="Cache-Control" content="no-store">
	<meta http-equiv="Pragma" content="no-cache">
	<meta http-equiv="Expires" content="-1"> 
	<?php if(!empty($fb_media)):?>
  		<meta property="og:video" content="<?php echo $fb_media;?>" />
      	<meta property="og:video:type" content="application/x-shockwave-flash" />
      	<meta property="og:video:width" content="1280" />
      	<meta property="og:video:height" content="720" />
		<link rel="video_src" href="<?php echo $fb_media;?>" />	
		<meta name="video_type" content="application/x-shockwave-flash" />
	<?php endif;?>	
	<link rel="icon" href="<?php echo image_asset_url('../css/images/favicon.ico');?>" type="image/x-icon" />
	<link rel="shortcut icon" href="<?php echo image_asset_url('../css/images/favicon.ico');?>" type="image/x-icon" />
	<script type="text/javascript">
	 	/*Set Initail*/
		//document.domain = 'you2play.com';
		var web_path = '<?php echo base_url();?>';
		var protocol = (window.location.protocol == "https:" ? "https":"http");
		if(protocol == "https") window.location.href = window.location.href.replace(protocol,'http');
	</script>	
	<?php if(!empty($ga_id)):?>
		<script type="text/javascript">
		  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
		  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
		  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
		  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

		  ga('create', 'UA-16730596-<?php echo $ga_id;?>', 'you2play.com');
		  ga('send', 'pageview');

		</script>		
		<?php if($ga_id != 1):?>
			<script type="text/javascript">
				ga('create', 'UA-16730596-1', 'you2play.com', {'name':'secondTracker'});
			  	ga('secondTracker.send', 'pageview');
			</script>						
		<?php endif;?>	
		<?php if(!empty($ga_event)):?>
			<script type="text/javascript">
				ga('send', 'event', ''+window.location.hostname+'', 'view', '<?php echo $ga_event;?>');
			</script>
			<?php if($ga_id != 1):?>
				<script type="text/javascript">
					ga('secondTracker.send', 'event', ''+window.location.hostname+'', 'view', '<?php echo $ga_event;?>');
				</script>			
			<?php endif;?>
		<?php endif;?>			
	<?php endif;?>
    <!--Load Js-->
    <?php 
    if(!empty($js)):
  		foreach(array_unique($js) as $value):
   			if(file_exists(realpath(@$this->config->item('path_asset_url').'assets/js/'.$value)) && !empty($value)):
   				echo js_asset($value."?v=3.3.1")."\n";				
     		endif;
		endforeach;
    endif;
    ?>
    <!--Load Css-->
    <?php 
    if(!empty($css)):
		foreach(array_unique($css) as $value):
			if(file_exists(realpath(@$this->config->item('path_asset_url').'assets/css/'.$value)) && !empty($value)):
				echo css_asset($value."?v=3.3.1",'', array('media'=>'all'))."\n";			
			endif;
		endforeach;
    endif;
    ?>
    <!--Load External Js-->
    <?php
    if(!empty($external_js)):
	?>
	<script type="text/javascript" language="javascript">
    	<?php echo $external_js;?>
	</script>
	<?php
    endif;
    ?>
    <!--Load External Css-->
    <?php
    if(!empty($external_css)):
	?>
	<style type="text/css">
    	<?php echo $external_css;?>
	</style>
	<?php
    endif;
    ?>		
</head>
<body>
	<!--Bubble Ads-->
	<script language="javascript" src="http://a.admaxserver.com/servlet/ajrotator/868628/0/vj?z=admaxasia2&dim=815247&pid=d85e47fc-af91-422a-85ad-b9a85a5f5c97&asid=91e1aa71-fc62-4fdd-8b97-00922b4d580a"></script>
	<noscript><a href="http://a.admaxserver.com/servlet/ajrotator/868628/0/cc?z=admaxasia2&pid=d85e47fc-af91-422a-85ad-b9a85a5f5c97&asid=91e1aa71-fc62-4fdd-8b97-00922b4d580a"><img src="http://a.admaxserver.com/servlet/ajrotator/868628/0/vc?z=admaxasia2&dim=815247&pid=d85e47fc-af91-422a-85ad-b9a85a5f5c97&asid=91e1aa71-fc62-4fdd-8b97-00922b4d580a&abr=$imginiframe" width="1" height="1" border="0"></a></noscript>
	<!-- Hawkeye : The data collection tag -->
	<script type="text/javascript">
		function DM_prepClient(csid,client) {
			var category_hawkeye = $.parseJSON('<?php echo json_encode($hawkeye_category_name);?>');
			$.each(category_hawkeye,function(key,items){
				client.DM_addEncToLoc("y2p_category", ""+items+""); 
			});
		}
	</script>
	<script src="//js.revsci.net/gateway/gw.js?csid=F09828&auto=t&bpid=you2play"></script>	
	<!--Topest Banner 1310x100-->
<!--	<div style="position: relative;width:1310px;margin:0 auto;">
		<?php //echo image_asset("default/event_top.jpg","",array("width" => 1310,"height" => 100));?>
	</div>-->
	<!--Wrapper-->
	<div id="wrapper">
		<?php if($active_wrap_all):?>
			<!-- Wrap All -->
			<script type='text/javascript'>
			<!--// <![CDATA[
			var OA_zones = {
			'ads_left' : 132,
			'ads_top' : 9,
			'ads_right' : 133
			}
			// ]]> -->
			</script>
			<script type='text/javascript' src='http://ads.you2play.com/openx/delivery/spcjs.php'></script>	
			<div id='wrap_all'>
				<div class='wrap_left'>
					<script type='text/javascript'>
					<!--// <![CDATA[
					OA_show('ads_left');
					// ]]> -->
					</script>			
				</div>
				<div class='wrap_middle'>
					<script type='text/javascript'>
					<!--// <![CDATA[
					OA_show('ads_top');
					// ]]> -->
					</script>
				</div>		
				<div class='wrap_right'>
					<script type='text/javascript'>
					<!--// <![CDATA[
					OA_show('ads_right');
					// ]]> -->
					</script>		
				</div>		
			</div>
		<?php endif;?>
		<div id="fb-root"></div>
		<script type="text/javascript" language="javascript">
			window.fbAsyncInit = function()
			{
				// init the FB JS SDK
				FB.init(
					{
						appId      : '<?php echo $this->config->item("fb_api");?>', // App ID from the App Dashboard
						//channelUrl : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File for x-domain communication
						status     : true, // check the login status upon init?
						cookie     : true, // set sessions cookies to allow your server to access the session?
						xfbml      : true  // parse XFBML tags on this page?
					});
			};

			// Load the SDK's source Asynchronously
			// Note that the debug version is being actively developed and might
			// contain some type checks that are overly strict.
			// Please report such bugs using the bugs tool.
			(function(d, debug)
				{
					var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
					if (d.getElementById(id))
					{
						return;
					}
					js = d.createElement('script'); js.id = id; js.async = true;
					js.src = "//connect.facebook.net/th_TH/all" + (debug ? "/debug" : "") + ".js";
					ref.parentNode.insertBefore(js, ref);
				}(document, /*debug*/ false));
		</script>		
		<div id="container">
			<!--Header-->
			<div id="header">
				<a id="you2play_logo" href="<?php echo $main_url;?>"></a>
			</div>
			<!--Search Menu-->
			<div id="top_login_bar">
				<div id="top_drop_menu">
					<a class="icon_login_bar drop_menu" href="javascript:void(0);" title="เมนูย่อย" onclick="javascript:$(this).next().fadeToggle();">&nbsp;</a>
					<ul>
						<li><span class="arrowSubMenu"></span><a href="<?php echo $music_url.'new_released/all/all/';?>">เพลงใหม่</a></li>
						<li><span class="arrowSubMenu"></span><a href="<?php echo $artist_url.'new_released/all/all/';?>">ศิลปินใหม่</a></li>
						<li><span class="arrowSubMenu"></span><a href="<?php echo $playlist_url.'category/new';?>">สถานีใหม่</a></li>
						<li><span class="arrowSubMenu"></span><a href="<?php echo $chord_url.'new_released/all/all/';?>">คอร์ดเพลงใหม่</a></li>
						<li><span class="arrowSubMenu"></span><a href="<?php echo $main_url.'live';?>">ยูทูเพลย์ทีวี</a></li>
						<li><span class="arrowSubMenu"></span><a href="<?php echo $video_url;?>">วิดีโอ</a></li>
						<li><span class="arrowSubMenu"></span><a href="<?php echo $video_url.'interview/new_released';?>">คลิปสัมภาษณ์</a></li>
						<li><span class="arrowSubMenu"></span><a href="<?php echo $video_url.'behind_scence/new_released';?>">กอสซิปบันเทิง</a></li>
						<li><span class="arrowSubMenu"></span><a href="<?php echo $news_url;?>">ข่าวดารา</a></li>
						<li><span class="arrowSubMenu"></span><a href="<?php echo $news_url.'asian';?>">ข่าวเอเชียน</a></li>
						<li><span class="arrowSubMenu"></span><a href="<?php echo $news_url.'inter';?>">ข่าวต่างประเทศ</a></li>
						<li><span class="arrowSubMenu"></span><a href="<?php echo $news_url.'movie';?>">ข่าววงการหนัง</a></li>
						<li>
							<span class="arrowSubMenu"></span><a href="javascript:void(0);" class="balloon" onclick="javascript:alert('Coming soon...');">ดูดวง</a>
							<div style="display:none;">Coming soon...</div>	
						</li>
						<li><span class="arrowSubMenu"></span><a href="<?php echo $activity_url;?>">ชิงรางวัล</a></li>
						<li>
							<span class="arrowSubMenu"></span><a href="javascript:void(0);" class="balloon" onclick="javascript:alert('Coming soon...');">กินดื่มเทียว</a>
							<div style="display:none;">Coming soon...</div>	
						</li>
						<li>
							<span class="arrowSubMenu"></span><a href="javascript:void(0);" class="balloon" onclick="javascript:alert('Coming soon...');">ท่องเที่ยว</a>
							<div style="display:none;">Coming soon...</div>	
						</li>
						<li><span class="arrowSubMenu"></span><a href="<?php echo $movie_url.'showing';?>">หนังใหม่</a></li>
						<li><span class="arrowSubMenu"></span><a href="<?php echo $movie_url.'clip';?>">คลิปเกียวกับหนัง</a></li>
						<li><span class="arrowSubMenu"></span><a href="<?php echo $fashion_url;?>">แฟนชั่น</a></li>
						<li><span class="arrowSubMenu"></span><a href="<?php echo $gallery_url;?>">แกลเลอรี่</a></li>
					</ul>
				</div>			
				<div id="top_search_bar">
					<input type="text" name="txtSearch-all" autocomplete="off" placeholder="ค้นหาอะไรก็เจอ..." value="<?php echo $this->input->get('text');?>"/>
					<a class="icon_login_bar btnSearch" href="javascript:void(0);" title="ค้นหาข้อมูล">&nbsp;</a>
				</div>
				<div id="social">
					<a class="icon_login_bar people" href="javascript:void(0);">&nbsp;</a>
					<a class="fb_login" href="javascript:void(0);" onclick="javascript:fbLogin(this);"><span class="fbName"><?php echo (!empty($member['username']) ? $member['username']:'ลงชื่อเข้าใช้งาน');?></span> <span class="loading"></span></a>
					<a class="icon_login_bar fb_logout" href="javascript:void(0);" onclick="javascript:fbLogout(this);" <?php echo (empty($member) ? 'style="display:none;"':'');?> title="ออกจากระบบ">&nbsp;</a>
					<iframe src="<?php echo base_url('truehitsstat.php');?>" width="14" height="17" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" allowtransparency="true" style="visibility:hidden;width:0;height:0;"></iframe>					
					<a class="icon_login_bar facebook" href="https://www.facebook.com/you2play" target="blank" title="You2Play Facebook">You2Play Facebook</a>
					<a class="icon_login_bar twitter" href="https://twitter.com/you2play" target="blank"title="You2Play Twitter">You2Play Twitter</a>
					<a class="icon_login_bar instagram" href="http://instagram.com/you2play" target="blank" title="You2Play Instagram">You2Play Instagram</a>
				</div>
			</div>
			<!--Top Menu-->
			<div id="top_menu_metro">
				<ul>
					<li class="squareLayoutBig">
						<div class="topMainMenu metro_home">
							<a class="icon_metro" href="<?php echo $main_url;?>">หน้าแรก</a>
						</div>
					</li>
					<li class="squareLayoutSmall">
						<div class="topMainMenu metro_artist">						
							<a class="icon_metro" href="<?php echo $artist_url;?>">ศิลปิน</a>
							<div class="topSubMenu">
								<a href="<?php echo $artist_url.'new_released/all/all/';?>"><div class="arrowSubMenu"></div>ศิลปินใหม่ล่าสุด</a>
								<a href="<?php echo $artist_url.'recommend/all/all/';?>"><div class="arrowSubMenu"></div>ศิลปินแนะนำ</a>
								<a href="<?php echo $artist_url.'hit/all/all/';?>"><div class="arrowSubMenu"></div>ศิลปินยอดนิยม</a>
							</div>						
						</div>
						<div class="topMainMenu metro_music">
							<a class="icon_metro" href="<?php echo $music_url;?>">เพลง</a>
							<div class="topSubMenu">
								<a href="<?php echo $music_url.'new_released/all/all/';?>"><div class="arrowSubMenu"></div>เพลงใหม่ล่าสุด</a>
								<a href="<?php echo $music_url.'recommend/all/all/';?>"><div class="arrowSubMenu"></div>เพลงแนะนำ</a>
								<a href="<?php echo $music_url.'hit/all/all/';?>"><div class="arrowSubMenu"></div>เพลงยอดนิยม</a>
							</div>							
						</div>
						<div class="topMainMenu metro_dream">
							<a class="icon_metro balloon" href="javascript:void(0);" onclick="javascript:alert('Coming soon...');">ดรีมทิคเก็ต</a>
							<div style="display:none;">Coming soon...</div>
						</div>
						<div class="topMainMenu metro_radio">
							<a class="icon_metro" href="<?php echo $playlist_url;?>">สถานีเพลง</a>
							<div class="topSubMenu">
								<a href="<?php echo $playlist_url.'member';?>"><div class="arrowSubMenu"></div>สถานีของฉัน</a>
								<a href="<?php echo $playlist_url.'category/new';?>"><div class="arrowSubMenu"></div>สถานีใหม่</a>
								<a href="<?php echo $playlist_url.'category/recommend';?>"><div class="arrowSubMenu"></div>สถานีแนะนำ</a>
								<a href="<?php echo $playlist_url.'category/hit';?>"><div class="arrowSubMenu"></div>สถานียอดนิยม</a>
							</div>							
						</div>
					</li>
					<li class="rectangularLayoutBig">
						<div class="topMainMenu metro_chord">
							<a class="icon_metro" href="<?php echo $chord_url;?>">คอร์ดเพลง</a>
							<div class="topSubMenu">
								<a href="<?php echo $chord_url.'new_released/all/all/';?>"><div class="arrowSubMenu"></div>คอร์ดเพลงใหม่</a>
								<a href="<?php echo $chord_url.'hit/all/all/';?>"><div class="arrowSubMenu"></div>คอร์ดเพลงฮิต</a>
								<a href="<?php echo $chord_url.'article/';?>"><div class="arrowSubMenu"></div>บทความ</a>
							</div>								
						</div>
					</li>
					<li class="rectangularLayoutSmall">
						<div class="topMainMenu metro_video">
							<a class="icon_metro" href="<?php echo $video_url;?>">วิดีโอ</a>
							<div class="topSubMenu">
								<a href="<?php echo $video_url.'mv/new_released';?>"><div class="arrowSubMenu"></div>มิวสิควิดีโอ</a>
								<a href="<?php echo $video_url.'concert/new_released';?>"><div class="arrowSubMenu"></div>คลิปคอนเสิร์ต</a>
								<a href="<?php echo $video_url.'interview/new_released';?>"><div class="arrowSubMenu"></div>คลิปสัมภาษณ์</a>
								<a href="<?php echo $video_url.'behind_scence/new_released';?>"><div class="arrowSubMenu"></div>คลิปข่าวบันเทิง</a>
								<a href="<?php echo $video_url.'you2playtv';?>"><div class="arrowSubMenu"></div>ดูทีวีย้อนหลัง</a>
							</div>								
						</div>
						<div class="topMainMenu metro_tv">
							<a class="icon_metro" href="<?php echo $main_url.'live';?>">ยูทูเพลย์ทีวี</a>
						</div>
					</li>
					<li class="rectangularLayoutSmall">
						<div class="topMainMenu metro_movie">
							<a class="icon_metro metro_movie" href="<?php echo $movie_url;?>">ภาพยนตร์</a>
							<div class="topSubMenu">
								<a href="<?php echo $movie_url.'showing';?>"><div class="arrowSubMenu"></div>หนังใหม่ชนโรง</a>
								<a href="<?php echo $movie_url.'coming_soon';?>"><div class="arrowSubMenu"></div>โปรแกรมหน้า</a>
								<a href="<?php echo $movie_url.'news';?>"><div class="arrowSubMenu"></div>ข่าววงการหนัง</a>
								<a href="<?php echo $movie_url.'clip';?>"><div class="arrowSubMenu"></div>คลิปเกี่ยวกับหนัง</a>
								<a href="<?php echo $movie_url.'music';?>"><div class="arrowSubMenu"></div>เพลงประกอบหนัง</a>
							</div>								
						</div>
						<div class="topMainMenu small metro_gallery">
							<a class="icon_metro" href="<?php echo $gallery_url;?>">แกลเลอรี่</a>
							<div class="topSubMenu">
								<a href="<?php echo $gallery_url.'concert';?>"><div class="arrowSubMenu"></div>คอนเสิร์ต</a>
								<a href="<?php echo $gallery_url.'inform';?>"><div class="arrowSubMenu"></div>แถลงข่าว</a>
								<a href="<?php echo $gallery_url.'behind';?>"><div class="arrowSubMenu"></div>รูปเบื้องหลัง</a>
								<a href="<?php echo $gallery_url.'news';?>"><div class="arrowSubMenu"></div>รูปข่าวบันเทิง</a>
								<a href="<?php echo $gallery_url.'artist';?>"><div class="arrowSubMenu"></div>รูปศิลปินดารา</a>
							</div>							
						</div>
						<div class="topMainMenu small metro_fashion">
							<a class="icon_metro" href="<?php echo $fashion_url;?>">แฟชั่น</a>
							<div class="topSubMenu">
								<a href="<?php echo $fashion_url.'magazine';?>"><div class="arrowSubMenu"></div>แฟชั่นจากปก</a>
								<a href="<?php echo $fashion_url.'women';?>"><div class="arrowSubMenu"></div>แฟชั่นสาวฮอต</a>
								<a href="<?php echo $fashion_url.'men';?>"><div class="arrowSubMenu"></div>แฟชั่นหนุ่มฮิต</a>
								<a href="<?php echo $fashion_url.'event';?>"><div class="arrowSubMenu"></div>แฟชั่นอีเว้นท์</a>
							</div>							
						</div>
					</li>
					<li class="rectangularLayoutSmall">
						<div class="topMainMenu small metro_review">
							<a class="icon_metro" href="<?php echo $news_url.'review';?>">รีวิวเพลง</a>
						</div>
						<div class="topMainMenu small metro_activity">
							<a class="icon_metro" href="<?php echo $activity_url;?>">ชิงรางวัล</a>
						</div>					
						<div class="topMainMenu metro_news">
							<a class="icon_metro" href="<?php echo $news_url;?>">ข่าว</a>
							<div class="topSubMenu">
								<a href="<?php echo $news_url.'thai';?>"><div class="arrowSubMenu"></div>ข่าวไทย</a>
								<a href="<?php echo $news_url.'asian';?>"><div class="arrowSubMenu"></div>ข่าวเอเชียน</a>
								<a href="<?php echo $news_url.'inter';?>"><div class="arrowSubMenu"></div>ข่าวต่างประเทศ</a>
								<a href="<?php echo $news_url.'review';?>"><div class="arrowSubMenu"></div>รีวิวอัลบั้ม</a>
								<a href="<?php echo $news_url.'article';?>"><div class="arrowSubMenu"></div>บทความ</a>
							</div>							
						</div>
					</li>
					<li class="rectangularLayoutSmall">
						<div class="topMainMenu metro_webboard">
							<a class="icon_metro balloon" href="javascript:void(0);" onclick="javascript:alert('Coming soon...');">เว็บบอร์ด</a>
							<div style="display:none;">Coming soon...</div>
						</div>
						<div class="topMainMenu metro_nightlife">
							<a class="icon_metro balloon" href="javascript:void(0);" onclick="javascript:alert('Coming soon...');">กิน ดื่ม เที่ยว</a>
							<div style="display:none;">Coming soon...</div>
						</div>					
					</li>
					<li class="rectangularLayoutBig">
						<div class="topMainMenu small metro_travel">
							<a class="icon_metro balloon" href="javascript:void(0);" onclick="javascript:alert('Coming soon...');">ท่องเที่ยว</a>
							<div style="display:none;">Coming soon...</div>
						</div>
						<div class="topMainMenu small metro_horoscope">
							<a class="icon_metro balloon" href="javascript:void(0);" onclick="javascript:alert('Coming soon...');">ดูดวง</a>
							<div style="display:none;">Coming soon...</div>
						</div>					
					</li>									
				</ul>
				<div class="clear"></div>
			</div>
			<!--Nav Menu-->
			<?php if(isset($top_sub_menu) && !empty($top_sub_menu)) echo $top_sub_menu;?>	
			<!--Ads Push Down-->
			<?php if($active_ads_pushdown && $this->uri->segment(1) == ""):?>
			<div id="ads_pushdown" style="width: 970px;padding:0 10px;margin-top:5px;z-index:-1;background-color:#FFFFFF; ">
				<script type='text/javascript'>
				<!--//<![CDATA[
				   var m3_u = (location.protocol=='https:'?'https://ads.you2play.com/openx/delivery/ajs.php':'http://ads.you2play.com/openx/delivery/ajs.php');
				   var m3_r = Math.floor(Math.random()*99999999999);
				   if (!document.MAX_used) document.MAX_used = ',';
				   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
				   document.write ("?zoneid=137");
				   document.write ('&amp;cb=' + m3_r);
				   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
				   document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
				   document.write ("&amp;loc=" + escape(window.location));
				   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
				   if (document.context) document.write ("&context=" + escape(document.context));
				   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
				   document.write ("'><\/scr"+"ipt>");
				//]]>-->
				</script>
				<noscript><a href='http://ads.you2play.com/openx/delivery/ck.php?n=a77e6eb4&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://ads.you2play.com/openx/delivery/avw.php?zoneid=137&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=a77e6eb4' border='0' alt='' /></a></noscript>
	<!--		<iframe id='ab15560b' name='ab15560b' src='http://ads.you2play.com/openx/delivery/afr.php?zoneid=137&amp;cb=INSERT_RANDOM_NUMBER_HERE' frameborder='0' scrolling='no' width='960' height='300'><a href='http://ads.you2play.com/openx/delivery/ck.php?n=aad598c3&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://ads.you2play.com/openx/delivery/avw.php?zoneid=137&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=aad598c3' border='0' alt='' /></a></iframe>	-->	
			</div>
			<?php endif;?>
			<!--Content-->
			<div id="content">
				<?php echo $this->load->view($content);?>
			</div>		
		</div>
	</div>
	<!--Footer-->
	<div id="footer_external">
		<div id="footer">
			<div id="footer-logo-detail">
				<ul>
					<li class="first"><a href="<?php echo $main_url;?>" title="หน้าแรก">หน้าแรก</a>|</li>
					<li><a href="<?php echo $artist_url;?>" title="">ศิลปิน</a>|</li>
					<li> <a href="<?php echo $music_url;?>" title="ฟังเพลง">ฟังเพลง</a>|</li>
					<li><a href="<?php echo $video_url;?>" title="วีดีโอ">วีดีโอ</a>|</li>
					<li><a href="<?php echo $main_url.'live';?>" title="you2playTV">ดูทีวี</a>|</li>
					<li><a href="<?php echo $movie_url;?>" title="ดูหนัง">ดูหนัง</a>|</li>
					<li><a href="<?php echo $news_url;?>" title="ข่าวและกิจกรรม">ข่าวบันเทิง</a>|</li>
					<li><a href="<?php echo $fashion_url;?>" title="แฟชั่น">แฟชั่น</a>|</li>
					<!--<li><a href="<?php echo $main_url.'member/profile';?>" title="มุมสมาชิก">มุมสมาชิก</a>|</li>-->
					<li><a href="<?php echo $main_url.'career';?>" title="ร่วมงานกับเรา">ร่วมงานกับเรา</a>|</li>
					<li><a href="mailto:webmaster@you2play.com" title="ติดต่อเรา">ติดต่อเรา</a>|</li>
					<li><a href="<?php echo $main_url.'advertising';?>" title="ติดต่อโฆษณา" class="advertising">ติดต่อโฆษณา</a>|</li>
					<li><a href="<?php echo $main_url.'policy/website';?>" title="นโยบายความเป็นส่วนตัว">นโยบายความเป็นส่วนตัว</a></li>
				</ul>
				<div>
					หากคุณต้องการ แนะนำ ติ-ชม หรือมีข่าวสารที่น่าสนใจต้องการนำเสนอผ่านเว็บไซต์ <a title="ฟังเพลง" href="http://www.you2play.com">you2play.com</a> ติดต่อมาที่ <a href="mailto:webmaster@you2play.com" title="webmaster@you2play.com" target="_blank">webmaster@you2play.com</a>			
				</div>
			</div>	
	 	</div>
	</div>
	<div id="toTop">^ Back to Top</div>
	<?php if($this->router->class == "home" && $this->router->method == "index"):?>
		<!--True Hits Click Map -->
		<script type="text/javascript" src="http://hits.truehits.in.th/clickmap/clickmap.js"></script >
		<script type="text/javascript">
		clickMapSite = 'r0028318';
		</script>	
	<?php endif;?>
	<!-- BEGIN EFFECTIVE MEASURE CODE -->
	<!-- COPYRIGHT EFFECTIVE MEASURE -->
	<script type="text/javascript">
		(function() {
			var em = document.createElement('script'); em.type = 'text/javascript'; em.async = true;
			em.src = ('https:' == document.location.protocol ? 'https://th-ssl' : 'http://th-cdn') + '.effectivemeasure.net/em.js';
			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(em, s);
		})();
	</script>
	<noscript>
		<img src="//th.effectivemeasure.net/em_image" alt="" style="position:absolute; left:-5px;" />
	</noscript>
	<!--END EFFECTIVE MEASURE CODE -->
	<!--Ads Floating-->
	<?php if(!empty($active_ads_floating)):?>
		<script type="text/javascript" language="javascript">
			function ads_floating(w,h){
				$('#ads_floating_shield').css({
					'position':'fixed',
					'top':0,
					'left':0,
					'background':'#FFFFFF',
					'opacity':'0.1',
					'width':'100%',
					'height':'100%',
					'z-index':9999
				});				
				$('#ads_floating').css({
					'position':'absolute',
					'top':parseInt((screen.height/2 - h/2),10)-50,
					'left':parseInt((screen.width/2 - w/2),10),
					'width':''+w+'px',
					'height':''+h+'px',
					'z-index':9999
				});
				$('#ads_floating').find('.btnClose').show();
				$(window).scroll(function(){
					$('#ads_floating').css({
						'top':parseInt((screen.height/2 - h/2),10)-50+$(this).scrollTop()
					});
				});
			}	
		</script>
		<div id="ads_floating_shield"></div>
		<div id="ads_floating">	
			<a href="javascript:void(0);" onclick="$('#ads_floating,#ads_floating_shield').fadeOut('fast').remove();" class="btnClose">Close [&times;]</a>
			<script type='text/javascript'>
			<!--//<![CDATA[
			   var m3_u = (location.protocol=='https:'?'https://ads.you2play.com/openx/delivery/ajs.php':'http://ads.you2play.com/openx/delivery/ajs.php');
			   var m3_r = Math.floor(Math.random()*99999999999);
			   if (!document.MAX_used) document.MAX_used = ',';
			   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
			   document.write ("?zoneid=178");
			   document.write ('&amp;cb=' + m3_r);
			   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
			   document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
			   document.write ("&amp;loc=" + escape(window.location));
			   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
			   if (document.context) document.write ("&context=" + escape(document.context));
			   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
			   document.write ("'><\/scr"+"ipt>");
			//]]>-->
			</script>
			<noscript><a href='http://ads.you2play.com/openx/delivery/ck.php?n=a63b3e00&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://ads.you2play.com/openx/delivery/avw.php?zoneid=178&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=a63b3e00' border='0' alt='' /></a></noscript>
		</div>
	<?php endif;?>	
	<!--Cover Page-->
	<?php if(!empty($active_cover_page)):?>
		<script type="text/javascript" language="javascript">
		    (function($) {
		        /*whatever jQuery stuff*/
		        $(function(){
					//Colorbox
					$.colorbox({
						open:true,
						iframe:true,
						width:1024,
						height:600,
						href:'http://'+document.domain+'/cover_page',
						scrolling:false
					});
		        });
		    })(jQuery);
		</script>
	<?php endif;?>
</body>
</html>